[XEND] Fix test for when to record HVM VNC console as a VFB.
authorTim Deegan <Tim.Deegan@xensource.com>
Fri, 20 Apr 2007 16:32:30 +0000 (17:32 +0100)
committerTim Deegan <Tim.Deegan@xensource.com>
Fri, 20 Apr 2007 16:32:30 +0000 (17:32 +0100)
This code may still need more work to properly integrate HVM SDL consoles.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/python/xen/xend/XendConfig.py

index a85be3fae6c6a897142029e40148771615d8e1ec..5082b274cc5964ea0dada5d004829154497860bf 100644 (file)
@@ -691,7 +691,7 @@ class XendConfig(dict):
         self['vtpm_refs'] = cfg.get('vtpm_refs', [])
 
         # coalesce hvm vnc frame buffer with vfb config
-        if self.is_hvm() and self['platform'].get('vnc', 0):
+        if self.is_hvm() and int(self['platform'].get('vnc', 0)) != 0:
             # add vfb device if it isn't there already
             has_rfb = False
             for console_uuid in self['console_refs']: